package com.zmj.entity;

public class UserInfo {
    private  long uid;
    private  long user_id;
    private  String sex;
    private  String rname;
    private  String phone;

    public UserInfo(long uid, long user_id, String sex, String rname, String phone) {
        this.uid = uid;
        this.user_id = user_id;
        this.sex = sex;
        this.rname = rname;
        this.phone = phone;
    }

    public UserInfo() {
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public long getUser_id() {
        return user_id;
    }

    public void setUser_id(long user_id) {
        this.user_id = user_id;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"uid\":")
                .append(uid);
        sb.append(",\"user_id\":")
                .append(user_id);
        sb.append(",\"sex\":\"")
                .append(sex).append('\"');
        sb.append(",\"rname\":\"")
                .append(rname).append('\"');
        sb.append(",\"phone\":\"")
                .append(phone).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
